 
from Stepper import Stepper
import time

s1 = Stepper(13,12,en_pin=14,steps_per_rev=800,speed_sps=3200)
# s2 = Stepper(20,21,steps_per_rev=200,speed_sps=50)
s1.free_run(360)

#  
# s1.speed(20) #use low speed for the calibration
# s1.free_run(-1) #move backwards
#  
# s1.stop() #stop as soon as the switch is triggered
# s1.overwrite_pos(0) #set position as 0 point
# s1.target(0) #set the target to the same value to avoid unwanted movement
# s1.speed(200) #return to default speed
# s1.track_target() #start stepper again
# 
# #calibration finished. Do something else below.
# s1.target_deg(180)
# time.sleep(5.0)